/********************************************
* Copyrigt (C) rumi
* Module: View_MainUI.cpp
*********************************************/
#include "View_MainUI.h"
#include "View_UartUI.h"

View_MainUI::View_MainUI(QWidget *parent) : QWidget(parent) {

    QGridLayout *MainUI_App_gridLayout = new QGridLayout(this);

    QList <QString>MainUI_App_Num_List;
    MainUI_App_Num_List<<"ComAssist"<<"Viewer"<<"Setting";
    int App_count = MainUI_App_Num_List.size();
    QPushButton *AppBtn[App_count];
    for(uint8_t i=0;i<App_count;i++)
    {
        AppBtn[i] = new QPushButton(MainUI_App_Num_List[i], this);
        AppBtn[i]->setFixedSize(75, 75);  
        MainUI_App_gridLayout->addWidget(AppBtn[i],0,i);
    }

    connect(AppBtn[0], &QPushButton::clicked, this, &View_MainUI::switchToViewUart);
}


/********************************************
 * End of file
*********************************************/
